package Application.FirstApplication.view
{
	import Application.FirstApplication.def.Manager;
	
	import flash.display.Sprite;
	
	import org.puremvc.as3.patterns.mediator.Mediator;

	public class ViewBaseMed extends Mediator
	{
		/** 
		 * @param mediatorName  为UI导出类名字
		 */		
		public function ViewBaseMed(mediatorName : String)
		{
			if(mediatorName)
			{
				var facadeClass : Class = Manager.Source.getClass(mediatorName);
				
				viewComponent = new facadeClass as Sprite;
			}
			
			super(mediatorName,viewComponent);
		}
	}
}